const baseUrl="http://localhost:3000/"
function http({url,data,callback}){
    wx.request({
        url:baseUrl+url,
        data,
        header: {'content-type':'application/json'},
        method: 'GET',
        dataType: 'json',
        responseType: 'text',
        success: (res)=>{
            callback(res)
        }
    
    });
}
function getDetail(id,callback){
http({
    url:`song/url?id=1368754688`,
    callback:res=>{
        callback(res)
    }
    })
}
module.exports={
    http,
    getDetail
}